<page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="getdata()" nz-button nzType="primary"><i nz-icon nzType="search"></i>查询</button>
    <button (click)="add()" nz-button nzType="primary">新建</button>
    <button nz-button [nzType]="'primary'" (click)="print()">打印测试</button>

  </ng-template>
</page-header>

<nz-card>
  <form>
    <sf #sf [schema]="schema" mode="search" [button]="null"></sf>
  </form>
  <lb-grid #st [columns]="columns" [sname]="params.sname" [queryparas]="params.form" virtualScroll [bordered]='true'>
  </lb-grid>

</nz-card>

<nz-modal [(nzVisible)]="isVisible" nzTitle="报表新增" (nzOnCancel)="handleCancel()" [nzFooter]=null nzWidth="550" nz-form>

  <sf #pop [schema]="newSchema" [button]="null" nzOkText="新建" autocomplete="off">
  </sf>

  <!--<nz-upload [(nzFileList)]="fileList" [nzBeforeUpload]="beforeUpload" nzt>
    <button nz-button><i nz-icon nzType="upload"></i><span>选择模板</span></button>
  </nz-upload>-->
  <button nz-button nzType="primary" (click)="handleUpload()"><i nz-icon nzType="save"></i>确定</button>
</nz-modal>


<nz-modal [(nzVisible)]="isVisible1" nzTitle="打印测试" (nzOnCancel)="handleCancel()" [nzFooter]=null nzWidth="850" nz-form>

  <div style="padding: 20px 20px; display: none;" id="div1">
    <iframe #iframe width="840" height="660" frameborder="0"></iframe>
  </div>

</nz-modal>